<template>
  <div>
    <!-- 3. 子组件通过$emit触发自定义事件，从而更新父组件数据 -->
    <button @click="$emit('setCount')">Child add</button>
  </div>
</template>

<script>
export default {
  name: "ChildComp",
};
</script>
